@import "../_variables.less";
@import "reset.less";
@import "box.less";
@import "form.less";

// 全局布局相关
body {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  // font-family: 'San Francisco','Noto SansCJK','Microsoft Yahei', Helvetica, Arial;
}

#sidebar {
  position: fixed;
  z-index: 99999;
  top: 0;
  bottom: 0;
  width: 200px;
  background: rgba(0,0,0,8);
  color: #aaa;
  font-size: 14px;

  .nav-img {
    height: 60px;
    line-height: 60px;
    border-bottom: 1px solid #313131;
  }

  .nav-item {
    cursor: pointer;
    a {
      color: #fff;
    }
  }

  .nav-item, .nav-text {
    padding: 0 15px;
    border-bottom: 1px solid #313131;
    line-height: 50px;

  }
  .nav-title {
    position: relative;
    padding-left: 30px;
    // cursor: pointer;
    .angle {
      position: absolute;
      top: 15px; right: 0;
      width: 20px; height: 20px;
      transition: all .5s;
    }
  }
  .nav-list {
    display: none;
    transition: all .5s;
    li {
      line-height: 40px;
      // cursor: pointer;
      &.on {
        color: #fff;
      }
    }
  }
  .nav-item.on {
    >.nav-title {
      color: #ffcb15;
      .angle {
        transform: rotate(-90deg);
        margin-top: -8px;
        right: 5px;
      }
    }
    >.nav-list {
      background-color: #313131;
      margin: 0 -15px;
      padding-left: 45px;
    }
  }
}

#cur-position {
  line-height: 30px;
  padding: 0 15px;
  border-bottom: 1px solid #ddd;
  span {
    margin: 0 10px;
  }
}

.wrapper {
  position: absolute;
  overflow: auto;
  top: @width-header; bottom: 0; left: 200px; right: 0;
}


#main {
  min-width: 1000px;
  padding: 10px;
}

#header-fix {
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 200px;
  right: 0;
  height: 60px;
  line-height: 60px;
  font-size: 14px;
  padding: 0 15px;
  border-bottom: 2px solid #ddd;
  background: #fff;
}

#menu-cur {
  padding-right: 30px;
  background: url(../images/icon-header.png) no-repeat center right;
  background-size: 25px;
  cursor: pointer;
  &.on {
    color: #ffcb15;
    background-image: url(../images/icon-header-hover.png);
  }
}

#header-list {
  position: fixed;
  z-index: 99999;
  top: 60px; left: 200px; right: 0;
  padding: 15px;
  display: none;
  background-color: #fff;
  border-bottom: 2px solid #ddd;
  li {
    width: 20%;
    float: left;
    line-height: 30px;
    margin: 10px 0;
    text-align: center;
    a {
      padding: 10px 30px;
      &.hover,
      &:hover {
        background-color: #eee;
        border-radius: 20px;
      }
    }
    // display: none;
    // &.em {
    //   display: list-item;
    // }
  }
}

.content-title {
  height: 40px;
  line-height: 40px;
  background: rgba(0,0,0,.7);
  margin: -10px -10px 20px -10px;
  text-indent: 1em;
  color: #fff; font-size: 14px;
}

.search-condition {
  position: relative;
  padding-bottom: 10px;
  // button {
  //   position: absolute;
  //   right: 0px;
  //   bottom: 10px;
  // }
}

// 特殊样式指定
.d-header,
.d-bottom {
  background-color: #6b6b6b;
  color: #fff;
  padding: 5px 10px;
  font-size: 14px;
}
.d-content {
  border: 1px solid #6b6b6b;
  padding: 20px;
  select, input {
    display: inline;
    margin-right: 5px;
  }
}
.d-title {
  margin-top: 10px;
  span {
    padding: 5px 10px;
    display: inline-block;
    background-color: #6b6b6b;
    color: #fff;

  }
}
.d-grid {
  margin: 20px;
}
.d-bottom {
  position: relative;
  .submit {
    position: absolute;
    top: 0; bottom: 0; right: 0;
    line-height: 30px;
    padding: 0 20px;
    background-color: #fff;
    color: #000;
    border-right: 1px solid #6b6b6b;
    border-bottom: 1px solid #6b6b6b;
    cursor: pointer;
  }
}
